.class public Lcom/estrongs/android/ui/topclassify/f;
.super Ljava/lang/Object;
.source "ClassifyManager.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/estrongs/android/ui/topclassify/c;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/topclassify/f;->b:Ljava/util/Map;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/topclassify/f;->a:Landroid/content/Context;

    return-void
.end method

.method public static c(Ljava/lang/String;)Z
    .locals 1

    const-string v0, "book://"

    .line 1
    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "video://"

    .line 2
    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "music://"

    .line 3
    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "pic://"

    .line 4
    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "gallery://local/buckets/"

    .line 5
    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_0

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p0, 0x1

    :goto_1
    return p0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/estrongs/android/ui/topclassify/c;
    .locals 2

    const-string v0, "video://"

    .line 1
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/topclassify/o;

    iget-object v1, p0, Lcom/estrongs/android/ui/topclassify/f;->a:Landroid/content/Context;

    invoke-direct {v0, p1, v1}, Lcom/estrongs/android/ui/topclassify/o;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    const/4 p1, 0x1

    .line 3
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/topclassify/c;->a(Z)V

    goto :goto_1

    :cond_0
    const-string v0, "music://"

    .line 4
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    new-instance v0, Lcom/estrongs/android/ui/topclassify/l;

    iget-object v1, p0, Lcom/estrongs/android/ui/topclassify/f;->a:Landroid/content/Context;

    invoke-direct {v0, p1, v1}, Lcom/estrongs/android/ui/topclassify/l;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    goto :goto_1

    :cond_1
    const-string v0, "book://"

    .line 6
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/topclassify/b;

    iget-object v1, p0, Lcom/estrongs/android/ui/topclassify/f;->a:Landroid/content/Context;

    invoke-direct {v0, p1, v1}, Lcom/estrongs/android/ui/topclassify/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    goto :goto_1

    :cond_2
    const-string v0, "pic://"

    .line 8
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string v0, "gallery://local/buckets/"

    .line 9
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    goto :goto_1

    .line 10
    :cond_4
    :goto_0
    new-instance v0, Lcom/estrongs/android/ui/topclassify/j;

    iget-object v1, p0, Lcom/estrongs/android/ui/topclassify/f;->a:Landroid/content/Context;

    invoke-direct {v0, p1, v1}, Lcom/estrongs/android/ui/topclassify/j;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    :goto_1
    return-object v0
.end method

.method public b(Ljava/lang/String;)Lcom/estrongs/android/ui/topclassify/c;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/topclassify/f;->b:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/topclassify/c;

    if-nez v0, :cond_0

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/ui/topclassify/f;->c(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/topclassify/f;->a(Ljava/lang/String;)Lcom/estrongs/android/ui/topclassify/c;

    move-result-object v0

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/topclassify/f;->b:Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    return-object v0
.end method
